<?php

namespace App\Providers;

use App\Contracts\Repositories\PermissionRepositoryRepository;
use App\Contracts\Repositories\RoleRepository;
use App\Contracts\Repositories\UserRepository;
use App\Repositories\Eloquent\PermissionRepositoryEloquent;
use App\Repositories\Eloquent\RoleRepositoryEloquent;
use App\Repositories\Eloquent\UserRepositoryEloquent;
use Illuminate\Support\ServiceProvider;

class RepositoryServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind(\App\Contracts\Repositories\NewsCategoryRepository::class,\App\Repositories\Eloquent\NewsCategoryRepositoryEloquent::class);
        $this->app->bind(\App\Contracts\Repositories\NewsRepository::class,\App\Repositories\Eloquent\NewsRepositoryEloquent::class);
        $this->app->bind(\App\Contracts\Repositories\PermissionRepository::class,PermissionRepositoryEloquent::class);
        $this->app->bind(RoleRepository::class,RoleRepositoryEloquent::class);
        $this->app->bind(UserRepository::class,UserRepositoryEloquent::class);
    }
}
